<?php

namespace app\admin\validate;

use think\Validate;
use app\common\Error;

class Other extends Validate
{
    protected $rule = [
        'id' => 'require',
        'admin_uid' => 'require',
        'video_id' => 'require',
    ];

    protected $message = [
        'id.require' => Error::ID_NOT_EXIXTS,
        'admin_uid.require' => Error::ADMIN_UID_NOT_EXIXTS,
        'video_id.require' => Error::VIDEO_ID_NOT_EXIXTS,
    ];

    protected $scene = [
        'add' => ['admin_uid', 'video_id'],
        'edit' => ['id', 'admin_uid', 'video_id'],
        'delete' => ['id'],
        'detail' => ['id'],
    ];
}